﻿﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApp.App.Web.Default.Common.VCode
{
    public class VCheckAction  : Controller
	{
		public VCheckAction(System.IO.TextWriter tw):base(tw){}
		public VCheckAction(string fileName) : base(fileName) {}
		public VCheckAction(Controller controller):base(controller){}
		public VCheckAction(NRapid.Owin.HtmlWriter writer,IDictionary<string,string> cookies):base(writer,cookies){}
        
        public void VCheck(string vcode)
        {
            NRapid.Lib.VerifyCode verifyCode = new NRapid.Lib.VerifyCode();
            bool result= verifyCode.Check(Cookie.vcheck, vcode);
            this.AjaxReturn(result);
        }
    }
}